package com.example.common.base;

import android.app.Application;
import android.text.TextUtils;

import com.alibaba.android.arouter.launcher.ARouter;
import com.example.libbase.utils.Logger;
import com.example.libbase.utils.PropertiesUtil;

/**
 * 诸事皆宜，加油！！！
 *
 * @author hermit
 * @date 2021/6/27 3:42
 */
public class BaseApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Logger.i("BaseApplication onCreate: ");

        String isRelease = PropertiesUtil.getProperty("isRelease");
        if(!TextUtils.equals(isRelease, "true")) {
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(this);
    }
}
